#!/bin/bash

for file in `ls arch` 
do
	if [ -d arch/$file ] && [ $file != "ia64" ] 
	then
		para="$para -e /arch\/$file/d"
	fi
done

for file in `ls -d include/asm-* `
do
	if [ $file != "asm-ia64" ]
	then
		para="$para -e /include\/`basename $file`/d "
	fi
done

sed $para tags > tmp
mv tags tags.orig
mv tmp tags
